package vault

import "gitee.com/git_public/vfaith/builtin/bean"

// region BundleModel

type BundleModel[T bean.IxBaseEntity] struct {
	*BundleBase
	Model T `json:"model"`
}

func NewBundleModel[T bean.IxBaseEntity](model T) *BundleModel[T] {
	bundleModel := &BundleModel[T]{
		BundleBase: &BundleBase{
			Code: 0,
			Msg:  "",
			Desc: "",
		},
		Model: model,
	}
	return bundleModel
}

func (adapter BundleModel[T]) BundleInit() {}

type BundleModelSwag struct {
	*BundleBase
	Model bean.IxBaseEntity `json:"model"`
}

//endregion
